import request from '@/utils/request'

// 查询检查项列表
export function listItems(query) {
  return request({
    url: '/reserve/checkItems/list',
    method: 'get',
    params: query
  })
}


// 删除检查项
export function delItems(itemsIds) {
  return request({
    url: '/reserve/checkItems/' + itemsIds,
    method: 'delete'
  })
}

// 新增
export function addItems(data) {
  return request ({
    url: '/reserve/checkItems/addItem',
    method: 'post',
    data: data
  })
}

// 查询单条
export function getItems(itemId) {
  return request ({
    url: '/reserve/checkItems/' + itemId,
    method: 'get'
  })
}

// 编辑更新
export function updateItem(data) {
  return request ({
    url: '/reserve/checkItems/updateItem',
    method: 'post',
    data: data
  })
}
